package com.sjzxywlkj.cplife.alipay.request.entity;

import java.util.Set;

import com.alibaba.fastjson.JSON;

/**
 * 批量上传待缴物业费账单请求参数
 * url:https://docs.open.alipay.com/api_20/alipay.eco.cplife.bill.batch.upload
 */
public class BillBatchupload {

    /**
     * 每次上传物业费账单，都需要提供一个批次号。对于每一个合作伙伴，
     * 传递的每一个批次号都必须保证唯一性，同时对于批次号内的账单明细数据必须保证唯一性；
     * 建议格式为：8位当天日期+流水号（3～24位，流水号可以接受数字或英文字符，建议使用数字）。
     */
    private String batch_id;

    /**
     * 支付宝社区小区统一编号，必须在物业账号名下存在。
     */
    private String community_id;

    /**
     * 账单应收条目明细集合，同一小区内条目明细不允许重复；一次接口请求最多支持1000条明细。
     */
    private Set<Bill_set> bill_set = null;

    public String toJson() {
        return JSON.toJSONString(this);
    }

    public BillBatchupload() {
        super();
    }

    public BillBatchupload(String batch_id, String community_id, Set<Bill_set> bill_set) {
        super();
        this.batch_id = batch_id;
        this.community_id = community_id;
        this.bill_set = bill_set;
    }

    public String getBatch_id() {
        return batch_id;
    }

    public void setBatch_id(String batch_id) {
        this.batch_id = batch_id;
    }

    public String getCommunity_id() {
        return community_id;
    }

    public void setCommunity_id(String community_id) {
        this.community_id = community_id;
    }

    public Set<Bill_set> getBill_set() {
        return bill_set;
    }

    public void setBill_set(Set<Bill_set> bill_set) {
        this.bill_set = bill_set;
    }

}
